package com.canyou.oss;

import com.canyou.enums.MediaAccessTypeEnum;
import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 七牛oss文件上传配置属性
 *
 * @author fy
 * @date 20/05/13 14:10
 */
@Data
@Configuration
@ConditionalOnProperty(prefix = "oss.qi-niu", name = "access-key")
@ConfigurationProperties(prefix = "oss.qi-niu")
public class QiNiuOssProperties {
    /**
     * AK
     */
    private String accessKey;

    /**
     * SK
     */
    private String secretKey;

    /**
     * 存储空间
     */
    private String bucket;

    /**
     * host
     */
    private String host;

    private MediaAccessTypeEnum accessType;

}
